package com.chapter4.superprivatefinal.demo1;


public class Animal {
    int height,weight;
    //父类构造方法
    Animal(){
        System.out.println("Animal 无参构造方法");
    }

    public Animal(int height, int weight) {
        this.height = height;
        this.weight = weight;
    }

    void eat(){
        System.out.println("Animal eat");
    }

    void sleep(){
        System.out.println("Animal sleep");
    }

    void breathe(){
        System.out.println("Animal breathe");
    }
}
